stages:
  - build
  - upload
  - deploy

build:
  stage: build
  script:
    - docker build -t chat-app-backend:$CI_COMMIT_SHORT_SHA ./chat-app-backend

upload:
  stage: upload
  script:
    - kind load docker-image chat-app-backend:${CI_COMMIT_SHORT_SHA}

deploy:
  stage: deploy
  environment:
    name: production
  script:
    - kubectl get pods
